import { createApp } from 'vue'
import App from './App.vue'
import router from './router/interceptor'
import { store } from './store/index'
/** antd */
import Antd from 'ant-design-vue'
import './assets/style/global.less'

import 'virtual:svg-icons-register' // 引入注册脚本
import SvgIcon from '@/components/icon/SvgIcon.vue' // 引入组件

import { registerComponents } from './components'
import { setupCommon } from './utils/common'

// 全局注册

// 导入 svg

const app = createApp(App)

setupCommon(app)

registerComponents(app)
app.component('svg-icon', SvgIcon)
app.use(router)
app.use(store)
.use(Antd)
.mount('#app')
